--TEST--
Check for jsonschema  number validate
--SKIPIF--

<?php if (!extension_loaded("jsonschema"))
    print "skip"; ?>
--FILE--
<?php
/* boolean */
$value = 12;
$jsonSchema = new JsonSchema(json_encode($value));

echo assert(!$jsonSchema->validate('{"type":"boolean","default":false}')), PHP_EOL;
echo count($jsonSchema->getErrors()), PHP_EOL;

/* integer or boolean */
$value = "a string";
$jsonSchema = new JsonSchema(json_encode($value));

echo assert(!$jsonSchema->validate('{"type":["boolean","integer"],"default":false}')), PHP_EOL;
echo count($jsonSchema->getErrors()), PHP_EOL;
$value = 123.321;
$jsonSchema = new JsonSchema(json_encode($value));
echo assert(!$jsonSchema->validate('{"type":["boolean","integer"],"default":false}')), PHP_EOL;
echo count($jsonSchema->getErrors()), PHP_EOL;
?>
--EXPECT--
1
1
1
2
1
2